<?php
class Core_Business_Expertises extends Core_Business_Abstract {
	private $_id;
	private $_name;
	private $_category;
	
	public function getId() {return $this->_id;}
	public function setId($value) {$this->_id=$value;}
	
	public function getName() {return $this->_name;}
	public function setName($value) {$this->_name=$value;}
	
	public function getCategory() {return $this->_category;}
	public function setCategory($value) {$this->_category = $value;}
	
	public static function getById($id) {
		$map = new Core_Data_Mappers_Expertises();
		$o = $map->find($id);
		return $o;
	}
	public static function getAll() {
		$map = new Core_Data_Mappers_Expertises();
		$o = $map->getDbTable()->Select();
		$data = $map->fetchQuery($o);
		return $data;
	} 
}
?>